package org.gdpi.ssh.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.gdpi.ssh.entitys.Specialty;
import org.gdpi.ssh.server.SpecialtyServer;

public class SpecialtyAction {

	private Specialty specialty;
	public Specialty getSpecialty() {
		return specialty;
	}

	private SpecialtyServer specialtyServer;
	public void setSpecialtyServer(SpecialtyServer specialtyServer) {
		this.specialtyServer = specialtyServer;
	}
	
	public String ajaxSpecialty(){
		HttpServletRequest request = ServletActionContext.getRequest();
		Integer id = Integer.parseInt(request.getParameter("specialtyId"));
		specialty = specialtyServer.ajaxFingById(id);
		return "ajaxFindByID";
	}
}
